<?php


namespace App\Entity\Teacher;


use App\Entity\BaseEntity;

/**
 * Class ExerciseDto
 * @package App\Entity\Teacher
 * @property int $classesId
 * @property int $seconds
 * @property int $passNum
 * @property int $excelNum
 * @property int $teacherId
 * @property int $roundNum
 * @property array $group
 */
class GameDto extends BaseEntity
{
    public function rules(): array
    {
        return [
            //'classesId' => 'required',
            'passNum' => 'required',
            'excelNum' => 'required',
            'seconds' => 'required',
            'roundNum' => 'required',
        ];
    }

    public function messages(): array
    {
        return [
            //'classesId.required' => '班级ID必传',
            'passNum.required' => '合格次数必传',
            'excelNum.required' => '优秀次数必传',
            'seconds.required' => '比赛时长必传',
            'roundNum.required' => '比赛轮次必传',
        ];
    }
}
